package ch04;

class FlowEx11 {
	public static void main(String[] args) {
		int sum = 0;
		for (int i = 1; i <= 10; i++) {
			sum += i; 
			System.out.println(i+": "+ sum);
		}
	}
}
/*
1: 1
2: 3
3: 6
4: 10
5: 15
6: 21
7: 28
8: 36
9: 45
10: 55
*/